package fr.esiea.es_inf5042.persistance.dao;

import java.util.List;

public abstract class DAO<T> {

	//KSE - Database tables' names.
	protected final String TABLE_USERS = "users"; 
	protected final String TABLE_USERS_USERS = "users_users"; 
	protected final String TABLE_BARGAINS = "bargains"; 
	protected final String TABLE_COMMENTS = "comments";	
	
	public abstract List<T> getAll(String whereClauses);
	
	public abstract T find(int id);	
	
	public abstract T create(T obj);
	
	public abstract void update(T obj);
	
	public abstract void delete(T obj);
}
